home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
etc
/
init.d
/
vbesave
< prev
next >
Wrap
Text File
|
2008-10-14
|
820b
|
43 lines
#!/bin/sh
test -x /usr/sbin/vbetool || exit 0
set -e
. /lib/lsb/init-functions
test -f /etc/default/rcS && . /etc/default/rcS
test -f /etc/default/acpi-support && . /etc/default/acpi-support
test -f /usr/share/acpi-support/device-funcs && . /usr/share/acpi-support/device-funcs
case "$1" in
start)
if laptop-detect > /dev/null; then
LAPTOP=true;
fi
if [ x$LAPTOP != xtrue ]; then
exit 0;
fi
DeviceConfig
log_begin_msg "Saving VESA state..."
if [ "$SAVE_VBE_STATE" = "true" ]; then
if [ "$VERBOSE" = no ]; then
if ! vbetool vbestate save > $VBESTATE 2>/dev/null; then
log_end_msg $?
exit 1
fi
else
if ! vbetool vbestate save > $VBESTATE ; then
log_end_msg $?
exit 1
fi
fi
log_end_msg 0
fi
;;
*)
exit 0
;;
esac